package com.w.wx.mapper;

import com.w.wx.domain.ChatList;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface ChatListMapper {
    int deleteByPrimaryKey(Integer listId);

    int insert(ChatList record);

    ChatList selectByPrimaryKey(Integer listId);

    List<ChatList> selectAll();

    int updateByPrimaryKey(ChatList record);


    ChatList selectByTwoOpenid(String from, String to);

    ArrayList<ChatList> selectByOpenid(String openid);


}